﻿using System;
using System.Collections.Generic;
using System.Diagnostics.Eventing.Reader;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameForm.Gamelib
{
    public class 师门Task:TaskBase
    {
        protected override async Task<bool> OnOther()
        {
            //其他未知对话框
            if (api.CheckColor(529, 416, "ffbe71") && api.CheckColor(618, 414, "f1cca3"))
            {
                api.LeftClick(529, 416);
                return true;
            }
            if(api.CheckColor(1000, 55, "644637"))
            {
                api.LeftClick(1000, 55);
                return true;
            }
            return await base.OnOther();
        }

        protected override async Task<bool> OnMainGame()
        {
            if (await api.Ck_移动中())
                return true;
            else if (await api.Action_使用物品())
                return true;
            return await base.OnMainGame();
        }
    }
}
